package oop第二章作业;
import java.util.Arrays;
import java.util.Scanner;

public class Array {
    int score[]=new int[5];

    public  void  Arrayssort(int j, int sun){
            score[j]=sun;
            return;
    }
    public void   ArraystoString(){
        Arrays.sort(score);
        System.out.println(Arrays.toString(score));
    }
    public static void main(String[] args) {
     Array array=new Array();
     Scanner input= new Scanner(System.in);
     for (int i=0;i<5;i++){
         System.out.println(
                 "输入一个数："
         );
         int s=input.nextInt();
         array.Arrayssort( i ,s);
     }
     array.ArraystoString();
    }
}
